package com.zzr.zzrbackend.mapper;

import com.zzr.zzrbackend.pojo.domain.UserInfo;
import com.zzr.zzrbackend.pojo.dto.param.PersonalCenterBParam;
import com.zzr.zzrbackend.pojo.dto.param.VolunteerParam;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserInfoMapper {
    int insertSelective(UserInfo record);

    int insertInit(UserInfo record);

    int updateChild(UserInfo record);

    int updateParent(UserInfo record);

    UserInfo selectByPrimaryKey(Integer userId);

    Integer updateVolunteer(Integer userId, VolunteerParam volunteerProfileResult);

    Integer updateName(Integer userId, String name);

    Integer setVolunteer(Integer userId, PersonalCenterBParam personalCenterParam);
}
